package com.quick.controller;

import com.quick.base.Page;
import com.quick.base.Search;
import com.quick.love.search.LoveMessageSearch;
import com.quick.love.vo.LoveMessageVo;
import com.quick.service.ILoveMessageService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/love/message")
@Api(tags = "相亲消息")
public class LoveMessageController {

    @Autowired
    private ILoveMessageService loveMessageService;

    @PostMapping("search")
    @ApiOperation("消息分页查询")
    public Page<LoveMessageVo> search(@RequestBody Search<LoveMessageSearch> search){
        return  loveMessageService.search(search);
    }
}
